﻿<local:DocumentBase x:Class="WPFExcelReport.YGRMGBEVL"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:db="clr-namespace:INTEX.DataBase"
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls" 
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization" 
                    xmlns:STK="clr-namespace:WPFExcelReport;assembly=TICC_STOCKM" 
                    xmlns:GV="clr-namespace:WPFExcelReport;assembly=TICC_GABEW" 
                    Name="TV"
                    Loaded="Window_Loaded"
                    Background="White" 
     >
    <local:DocumentBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:PNumConverter  x:Key="pnum"/> 
    </local:DocumentBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*" ></RowDefinition>
            <RowDefinition Height="1*" ></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"></ColumnDefinition>
            <ColumnDefinition Width="1*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Expander  Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"
            Name="expLog" ExpandDirection="Down" IsExpanded="True">
            <StackPanel>
                <WrapPanel Name="zoneCommand" Margin="4,0,51,6" Grid.ColumnSpan="3">
                    <Label Content="系统" Width="Auto" Margin="0" HorizontalAlignment="Left" VerticalAlignment="Center" />
                    <TextBox Name="txtMANDANT" MaxLength="2" Width="40" Margin="10,0,0,0" Text="00" HorizontalAlignment="Left" Background="Pink"  TabIndex="1" />
                    <Label Content="语言" Width="Auto" Margin="0,0,0,0" HorizontalAlignment="Left"  VerticalAlignment="Center" />
                    <TextBox IsReadOnly="True" Name="txtSPRACHKZ" Width="40" Margin="0,0,0,0" Text="" MaxLength="1" HorizontalAlignment="Left" Background="Pink" FontSize="18" TabIndex="2" />
                    <Label Content="用户名" Width="Auto" Margin="10,0,0,0" HorizontalAlignment="Left"  VerticalAlignment="Center" />
                    <TextBox Name="txtUserID" Width="80" Margin="10,0,0,0" Text="" HorizontalAlignment="Left" Background="Yellow" FontSize="18" MaxLength="8" AcceptsTab="False" CharacterCasing="Upper" KeyboardNavigation.TabIndex="0" TabIndex="3" />
                    <Label Content="密码" Width="Auto" Margin="10,0,0,0" HorizontalAlignment="Left"  VerticalAlignment="Center" />
                    <PasswordBox Name="txtPassword" Width="80" Margin="10,0,0,0" HorizontalAlignment="Left" Background="Yellow"  KeyboardNavigation.TabIndex="1" TabIndex="4" />
                    <Button Height="Auto" Margin="10,0,0,0" Name="btnLogIn" Width="Auto" Click="btnLogIn_Click" KeyboardNavigation.TabIndex="2" IsDefault="True" TabIndex="5">
                        登录
                    </Button>
                    <TextBlock Name="txtLogIn" Width="Auto" Margin="10,0,0,0" HorizontalAlignment="Left" Background="White" FontSize="14" KeyboardNavigation.TabIndex="1" />
                </WrapPanel>
            </StackPanel>
        </Expander>
        <Grid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="1*" ></RowDefinition>
            </Grid.RowDefinitions>
            <WrapPanel Name="ZoneOrder" >
                <TextBlock FontSize="18"  VerticalAlignment="Center" Text="{Binding Source={Localization:TranslateExtension Word=更新}}"></TextBlock>
                <Button  Width="30" Height="30" Margin="10,0,0,0"  Command="{Binding RefreshCommand}">
                    <Button.Background>
                        <ImageBrush  ImageSource="/ImagePackage;component/Images/Refresh.png" />
                    </Button.Background>
                </Button>
                <TextBlock FontSize="18" VerticalAlignment="Center" Text="{Binding Source={Localization:TranslateExtension Word=年份}}"></TextBlock>
                <TextBox FontSize="18"   Text="{Binding SYEAR}" Width="80" VerticalAlignment="Center" Background="AliceBlue"></TextBox>
                <TextBlock FontSize="18" VerticalAlignment="Center" Text="{Binding Source={Localization:TranslateExtension Word=月份}}"></TextBlock>
                <TextBox FontSize="18"   Text="{Binding SMOTH}" VerticalAlignment="Center" Width="30" Background="AntiqueWhite"></TextBox>
                <TextBox    Text="{Binding LO}" MaxLength="2" Width="40" Margin="10,0,0,0"  VerticalAlignment="Center" Background="White"  CharacterCasing="Upper" TabIndex="11" />
                <TextBlock Width="Auto"  VerticalAlignment="Center">LB:</TextBlock>
                <TextBox    Text="{Binding LB}"  VerticalAlignment="Center" MaxLength="2" Width="40" Margin="10,0,0,0"  HorizontalAlignment="Left" Background="White"  CharacterCasing="Upper" TabIndex="11" />
                <TextBlock Width="Auto"  VerticalAlignment="Center">纱线:</TextBlock>
                <TextBox   Text="{Binding ART}"  VerticalAlignment="Center"  Width="100" Margin="10,0,0,0" HorizontalAlignment="Left" Background="White"  CharacterCasing="Upper" TabIndex="11" />
            </WrapPanel>
            <WrapPanel Grid.Row="1"> 
                <TextBlock Width="Auto"  VerticalAlignment="Center">生产单:</TextBlock>
                <TextBox   Name="txtAUFKRS" MaxLength="2" Width="40" Margin="10,0,0,0"   VerticalAlignment="Center" Background="Pink"  CharacterCasing="Upper" TabIndex="11" />
                <TextBox   Name="txtAUFLFD" MaxLength="6" Width="80" Margin="0,0,0,0"   VerticalAlignment="Center" />
                <TextBox   Name="txtAUFPOS" MaxLength="6" Width="40" Margin="0,0,0,0"   VerticalAlignment="Center" />
                <Button  Height="30"  Width="30" Margin="10,0,0,0" Command="{Binding QueryCommand}" KeyboardNavigation.TabIndex="3" IsDefault="True" TabIndex="13">
                    <Button.Background>
                        <ImageBrush  ImageSource="/ImagePackage;component/Images/Search.png" />
                    </Button.Background>
                </Button>
                <Button FontSize="18" Content="查询"  BorderBrush="Yellow" Margin="10,0,0,0"    Command="{Binding QueryCommand}" ></Button>
                <Button Content="打印"  FontSize="18"   BorderBrush="Yellow" Margin="20,0,0,0"   Width="Auto"  Command="{Binding PrintCommand}"/>
            </WrapPanel>
            <STK:TSTKM02 dwKEY="{Binding dwSTOCK}" Grid.Row="2" Grid.Column="0" />
        </Grid> 
        <TabControl Grid.Row="2" Grid.Column="0"  Grid.ColumnSpan="2">
            <TabItem Header="明细">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"></RowDefinition>
                        <RowDefinition Height="1*"></RowDefinition>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="1*"></ColumnDefinition>
                        <ColumnDefinition Width="1*"></ColumnDefinition>
                        <ColumnDefinition Width="1*"></ColumnDefinition> 
                    </Grid.ColumnDefinitions>
                    <STK:TSTKM03 dwKEY="{Binding dwSTOCK}" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2"/>
                    <GV:TGB14 dwKEY="{Binding dwSTOCK}" Grid.Row="1" Grid.Column="2" /> 
                </Grid> 
            </TabItem>
        </TabControl> 
    </Grid>
</local:DocumentBase>
